package com.xhsj.user.hr.system.entity;

import com.xhsj.user.hr.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 组织结构表
 * </p>
 *
 * @author 苏小林
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_global_organization")
public class TbGlobalOrganization extends BaseEntity<TbGlobalOrganization> {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    @TableField(exist = false)
    private String oldName;

    /**
     * 父id
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 父ids
     */
    @TableField("parent_ids")
    private String parentIds;

    /**
     * 类型  0 部门 1职位
     */
    @TableField("type")
    private Integer type;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 0 启用 1 禁用
     */
    @TableField("is_enable")
    private Integer isEnable;


}
